import request from "@/utils/request";

export const _getDicts = async <T>(data?: any) => request<T>('/admin/dicts', {
    method: 'post',
    data
})

export const _addDict = async <T>(data?: any) => request<T>('/admin/addDict', {
    method:'post',
    data
})

export const _removeDict = async <T>(data?: any) => request<T>('/admin/removeDict', {
    method:'post',
    data
})

export const _addDictData = async <T>(data?: any) => request<T>('/admin/addDictData', {
    method:'post',
    data
})